package com.xuetang9.t9.hotel.beans;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName EConsumption
 * @Description TODO
 * @Author ChinaHp
 * @Date 2020/1/4 16:45
 * @Version 1.0
 **/
public class EConsumption implements Serializable {
    private int id;
    private int tablesId;
    private int staffId;
    private int customerId;
    private int humanCount;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date orderTime;
    private String orderType;
    private int price;
    private String state;
    private String checkoutTime;
    private int actualPrice;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date period;
    private String comment;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date guestTime;
    private String guestInfo;
    private String payment;
    private List<OrderFood> orderFoods;
    /**
     * 就餐状态 0-就餐中 1-已完成
     */
    private Integer diningstate;

    public Integer getDiningstate() {
        return diningstate;
    }

    public void setDiningstate(Integer diningstate) {
        this.diningstate = diningstate;
    }

    public EConsumption() {
    }

    public EConsumption(int tablesId, int staffId, int price, List<OrderFood> orderFoods) {
        this.tablesId = tablesId;
        this.staffId = staffId;
        this.price = price;
        this.orderFoods = orderFoods;
    }

    public EConsumption(int tablesId, int staffId, int price, int actualPrice, List<OrderFood> orderFoods) {
        this.tablesId = tablesId;
        this.staffId = staffId;
        this.price = price;
        this.actualPrice = actualPrice;
        this.orderFoods = orderFoods;
    }

    public EConsumption(int id, int tablesId, int staffId, int customerId, int humanCount, Date orderTime, String orderType, int price, String state, String checkoutTime, int actualPrice, Date period, String comment, Date guestTime, String guestInfo, String payment) {
        this.id = id;
        this.tablesId = tablesId;
        this.staffId = staffId;
        this.customerId = customerId;
        this.humanCount = humanCount;
        this.orderTime = orderTime;
        this.orderType = orderType;
        this.price = price;
        this.state = state;
        this.checkoutTime = checkoutTime;
        this.actualPrice = actualPrice;
        this.period = period;
        this.comment = comment;
        this.guestTime = guestTime;
        this.guestInfo = guestInfo;
    }

    public String getCheckoutTime() {
        return checkoutTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public int getHumanCount() {
        return humanCount;
    }

    public void setHumanCount(int humanCount) {
        this.humanCount = humanCount;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }


    public void setCheckoutTime(String checkoutTime) {
        this.checkoutTime =  checkoutTime;
    }

    public int getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(int actualPrice) {
        this.actualPrice = actualPrice;
    }

    public Date getPeriod() {
        return period;
    }

    public void setPeriod(Date period) {
        this.period = period;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Date getGuestTime() {
        return guestTime;
    }

    public void setGuestTime(Date guestTime) {
        this.guestTime = guestTime;
    }

    public String getGuestInfo() {
        return guestInfo;
    }

    public void setGuestInfo(String guestInfo) {
        this.guestInfo = guestInfo;
    }

    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public List<OrderFood> getOrderFoods() {
        return orderFoods;
    }

    public void setOrderFoods(List<OrderFood> orderFoods) {
        this.orderFoods = orderFoods;
    }

    public int getTablesId() {
        return tablesId;
    }

    public void setTablesId(int tablesId) {
        this.tablesId = tablesId;
    }

    public int getStaffId() {
        return staffId;
    }

    public void setStaffId(int staffId) {
        this.staffId = staffId;
    }

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    @Override
    public String toString() {
        return "EConsumption{" +
                "id=" + id +
                ", tablesId=" + tablesId +
                ", staffId=" + staffId +
                ", customerId=" + customerId +
                ", humanCount=" + humanCount +
                ", orderTime=" + orderTime +
                ", orderType='" + orderType + '\'' +
                ", price=" + price +
                ", state='" + state + '\'' +
                ", checkoutTime=" + checkoutTime +
                ", actualPrice=" + actualPrice +
                ", period=" + period +
                ", comment='" + comment + '\'' +
                ", guestTime=" + guestTime +
                ", guestInfo='" + guestInfo + '\'' +
                ", payment='" + payment + '\'' +
                ", orderFoods=" + orderFoods +
                '}';
    }

}
